/* eslint-disable import/no-mutable-exports */
import { Store } from 'vuex'
import { getModule } from 'vuex-module-decorators'
import RootModule from '../store/root'

let rootModule: RootModule

function initialiseStores (store: Store<any>): void {
  rootModule = getModule(RootModule, store)
}

export { initialiseStores, rootModule }
